package com.my.test.swing.demo;

/**
 * 
 * @author MAbernethy
 */
public class Flight
{
	private String departure;
	private String destination;
	private int remainingTixx;
	private int flightNum;
	
	public boolean equals(Object o)
	{
		Flight f = (Flight)o;
		return departure.equals(f.getDeparture()) 
		&& destination.equals(f.getDestination()) 
		&& flightNum == f.getFlightNum();
	}
	
	public String getDeparture()
	{
		return departure;
	}

	public String getDestination()
	{
		return destination;
	}

	public int getRemainingTixx()
	{
		return remainingTixx;
	}

	public void setDeparture(String string)
	{
		departure = string;
	}

	public void setDestination(String string)
	{
		destination = string;
	}

	public void setRemainingTixx(int i)
	{
		remainingTixx = i;
	}


	public int getFlightNum()
	{
		return flightNum;
	}

	public void setFlightNum(int i)
	{
		flightNum = i;
	}

}
